public class HeroInfo {
    public String name;
    public int height;

    public HeroInfo(){
        this.skillOne();
    }
    public HeroInfo(String name,int height){
        this();
        this.name = name;
        this.height = height;
        this.skillTwo();
    }

    public void setHero(String name,int height){
        this.name = name;
        this.height = height;
    }
    public void printHero(){
        System.out.println("name: "+this.name+" height: "+ this.height);
        this.skillOne();
    }
    public void skillOne(){
//        this("kai",190);  会报错！ 因为 对this的调用必须是构造器中的第一个语句
        System.out.println("一技能|回旋之刃----->");
    }
    public void skillTwo(){
        System.out.println("二技能|极刃风暴----->");
    }
    public void skillThree(){
        System.out.println("三技能|不灭魔躯----->");
    }

    public static void main(String[] args) {

        HeroInfo heroInfo = new HeroInfo("铠",180);
        heroInfo.setHero("娜可露露",170);
        heroInfo.printHero();


//        HeroInfo heroInfo1 = new heroInfo();
//        heroInfo1.name = "铠";
//        heroInfo1.height=180;
//        heroInfo1.skillOne();
//        heroInfo1.skillTwo();
//        heroInfo1.skillThree();
//
//        HeroInfo heroInfo2 = new heroInfo();
//        heroInfo2.name = "百里玄策";
//        heroInfo2.height=173;
//        heroInfo2.skillOne();
//        heroInfo2.skillTwo();
//        heroInfo2.skillThree();
    }
}
